#define _CRT_SECURE_NO_WARNINGS 1


#include <stdio.h>

#include <stdio.h>

int main()
{
	int n = 0;
	scanf("%d", &n);
	int i = 0;
	int j = 1;
	int a = 1;
	for (a = 0; a < n; a++)
	{
		for (i = 0; i < n - a; i++)
		{
			printf("%02d", j);
			j++;
		}
		printf("\n");

	}
	return 0;
}